package tool;

import java.sql.SQLException;

public class Main {
    public static void main(String[] args) throws SQLException, ClassNotFoundException {
        Connector.init();
        Connector.query("select * from onSale;");

        Connector.insert("insert into onSale( type, goods, describe0, price, amount) values ( '破烂', '没轮子的自行车', '还要啥自行车啊', 50, 1);");
        Connector.query("select * from onSale;");

        Connector.delete("delete from onSale where id = 4;");
        Connector.query("select * from onSale;");

        Connector.updata("update onSale set amount=3 where id = 3;");
        Connector.query("select * from onSale;");

        System.out.println();

    }
}
